package org.s3.project.controller;

import org.s3.project.service.PaymentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cfx
 * @version 1.0
 * @Description
 * @date 2025/2/9 9:33
 */
@CrossOrigin(origins = "*")
@RestController
public class PaymentsController {
    @Autowired
    private PaymentsService paymentsService;
    @GetMapping("getTotalAmount")
    public double getTotalAmount() {
        return paymentsService.getTotalAmount();
    }
}
